package com.ice.work.moment.facade.crawler.enums;

/**
 * @Description 策略类型
 * @Author DELL
 * @Create 2019-01-09
 * @Since 1.0.0
 */
public enum HandlerTypeEnum {

    GROUP(1),
    PROMOTION(2),
    NORMAL(3);

    private Integer value;

    public Integer value() {
        return value;
    }

    HandlerTypeEnum(Integer value) {
        this.value = value;
    }

    /**
     * 判断是否是此类型
     *
     * @param value
     * @return
     */
    public static Boolean isEnum(Integer value) {
        for (HandlerTypeEnum gender : HandlerTypeEnum.values()) {
            if (gender.value.equals(value)) {
                return true;
            }
        }
        return false;
    }
}
